/*
 * @Title JSoup.java
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.jsoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

/**
 * @author lizhen
 */
public class JsoupDemo {

    /**
     * @author lizhen
     */
    public JsoupDemo() {
    }

    /**
     * @author lizhen
     */
    public static void main(String[] args) {
        try {
            Document doc = Jsoup.connect("http://www.baidu.com").get();
            String title = doc.title();

            System.out.println(title);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
